package com.test.qnews.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.test.qnews.custom.DayNightMode;

/**
 * Created by dllo on 16/1/10.
 */
public abstract class BaseActivity extends AppCompatActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        DayNightMode.onActivityCreateSetTheme(this);

        setContentView(setLayout());
        initView();
    }

    protected abstract int setLayout();
    protected abstract void initView();

}
